package com.potenza.training.resume.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zengyang
 * @create 2021-04-22-9:18
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Boolean success;
    private String code;
    private String messages;


    public static Result Success(){
        return new Result(true,"1","执行成功！！！");
    }

    public static Result Pall(){
        return new Result(false,"0","执行失败！！！");
    }
}
